#include "calibrationlightbalanceform.h"
#include "ui_calibrationlightbalanceform.h"
#include <QPainter>
#include <QStyleOption>

CalibrationLightBalanceForm::CalibrationLightBalanceForm(QWidget *parent) :
    QWidget(parent),
    ui(new Ui::CalibrationLightBalanceForm)
{
    ui->setupUi(this);
    this->setFixedHeight(80);
    this->setProperty("form","backgroundform");
    ui->leftBorderForm->SetLabelIcon("lightbalanceform");
    ui->leftBorderForm->UpdateShowType(3);
}

CalibrationLightBalanceForm::~CalibrationLightBalanceForm()
{
    delete ui;
}

void CalibrationLightBalanceForm::paintEvent(QPaintEvent *event)
{
    QStyleOption opt;
    opt.init(this);
    QPainter painter(this);
    style()->drawPrimitive(QStyle::PE_Widget,&opt,&painter,this);
    QWidget::paintEvent(event); 
}
